import React from 'react';
import { useNavigate } from 'react-router-dom';

const Login: React.FC = () => {
    const navigate = useNavigate();
    // 登录
    const login = () => {
        localStorage.setItem('token', '1111')
        navigate('/home')
    }
	return (
		<>
			<div onClick={login}>登录</div>
		</>
	);
};

export default Login;
